package rmi;

import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

public class StubMain {

    public static void main(String[] args) throws Exception, RemoteException, NotBoundException {
        MyRemote service = (MyRemote) Naming.lookup("rmi://192.168.2.13:1009/RemoteHello");
        String string = service.sayHello("hello world!");
        System.out.println(string);
    }

}
